<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="CunhuoNavCtrl"></ul>
<div class="set_box">
    <h1 class="set_title"><!--调拨单-->{{language.TIPS_INVENTORY_ALLOT_ORDER}}
        <span class="title_btn_group"> 
            <a class="title_btn" href="javascript:void(0);" ng-show="purview['\/DiaoboApplication'].show == 1" ng-click="diaoboChu();" ng-class="{true: 'curr', false: ''}[active_switch_2]">横调出</a> 
            <a class="title_btn" ng-show="purview['\/DiaoboApplication'].show == 1" ng-click="diaoboRu();" ng-class="{true: 'curr', false: ''}[active_switch_1]">横调入</a> 
        	<a class="title_btn" href="javascript:void(0);" ng-show="purview['\/CunhuoDiaoboListCtrl:search'].show == 1" ng-click="search();" ><!--查询-->{{language.ACT_INQUIRE}}</a> 
            <a class="title_btn" ng-href="#/cunhuo/diaobo_add" ng-show="purview['\/CunhuoDiaoboListCtrl:add'].show == 1"><!--新增-->{{language.TIPS_INVENTORY_APPEND}}</a> 
        </span></h1>
    <div class="set_cont list_page" >
        <table class="list_table">
            <thead>
                <tr>
                    <th><!--单据编号-->{{language.TIPS_INVENTORY_DOC_CODE}}</th>
                    <th><!--数量-->{{language.TIPS_INVENTORY_NUM}}</th>
                    <th><!--金额-->{{language.TIPS_INVENTORY_MONEY}}</th>
                    <th><!--时间-->{{language.TIPS_INVENTORY_TIME}}</th>
                    <th><!--状态-->{{language.TIPS_INVENTORY_STATUS}}</th>
                </tr>
            </thead>
            <tbody ng-repeat="i in diaobo_list| orderBy:'key':true">
                <tr class="date_num">
                    <td class="date" colspan="4"><!--日期-->{{language.TIPS_INVENTORY_DATE}}：{{i.key}}</td>
                    <td class="num"><span>{{i.value.length}}</span></td>
                </tr>
                <tr class="list_unit"  ng-repeat="diaobo in i.value track by $index" >
                    <td><a ng-href="#/cunhuo/diaobo_detail/{{diaobo.record_code}}">{{diaobo.record_code}}</a></td>
                    <td>{{diaobo.num}}</td>
                    <td>{{diaobo.money|number:2}}</td>
                    <td>{{diaobo.lastchanged}}</td>
                    <td ng-show="purview['\/cunhuo\/chuku'].show == 0">{{diaobo.is_sure|check_is_sure}}</td>
                    <td ng-show="purview['\/cunhuo\/chuku'].show == 1">{{diaobo.is_check|check_ico}}{{diaobo.is_execute|check_is_execute}}</td>
                </tr>
            </tbody>
        </table>
        <div class="btn_more"><button class="btn" ng-click='scoll.nextpage();' ng-show="is_show"></button></div>
    </div>
</div>
